﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 派工明细表
    /// </summary>
    [Table("PB_DispatchDetail")]
    public partial class PB_DispatchDetail
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 派工Id
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 任务类型：0-翻新；1-新制; 2-非生产;3-维修改制;4-组装
        /// </summary>
        public int? IsRefurbishment { get; set; }

        /// <summary>
        /// 工序Id
        /// </summary>
        public String SubId { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        public String ProjectId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 任务单Id
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 任务单明细Id
        /// </summary>
        public string OrderDetailId { get; set; }

        /// <summary>
        /// 孔径
        /// </summary>
        public String Aperture { get; set; }

        /// <summary>
        /// 材质
        /// </summary>
        public String Texture { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public Double? Nums { get; set; }

        /// <summary>
        /// 已报工数量
        /// </summary>
        public Double? WorkReportQuantity { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorRealName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean Deleted { get; set; }
        /// <summary>
        /// 已领取的数量
        /// </summary>
        public Int32? ReadyNums { get; set; }
        /// <summary>
        /// 领取状态
        /// </summary>
        public Int32? State { get; set; }
        /// <summary>
        /// 隶属成品
        /// </summary>
        public string SubordinateProduct { get; set; }
        /// <summary>
        /// 物料长度
        /// </summary>
        public Double? MaterialLength { get; set; }

        /// <summary>
        /// 打孔数量
        /// </summary>
        public Double? PunchingNums { get; set; }

        /// <summary>
        /// 打孔位置
        /// </summary>
        public string PunchingPosition { get; set; }

        /// <summary>
        /// 派工模式:0-数量,1-重量
        /// </summary>
        public int? ModeType { get; set; }

    }
}